package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/10
 * @Description:
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class DevInfo {

    @ApiModelProperty(name = "CMD",value = "CMD" ,example = "PutDevInfo",dataType = "String")
    @NotNull(message = "PutDevInfo不能为空")
    private String CMD;

    @ApiModelProperty(name = "No",value = "No" ,example = "123456789")
    @NotNull(message = "IMB编号不能为空")
    private String No;

    @ApiModelProperty(name = "IP",value = "IP" ,example = "3.196.31.3")
    private String IP;

    @ApiModelProperty(name = "ICID",value = "ICID" ,example = "898602C99816C0994256",dataType = "String")
    private String ICID;

    @ApiModelProperty(name = "HW",value = "HW" ,example = "V001",dataType = "String")
    @NotNull(message = "硬件版本号不能为空")
    private String HW;

    @ApiModelProperty(name = "SW",value = "SW" ,example = "V001",dataType = "String")
    @NotNull(message = "软件版本号不能为空")
    private String SW;

    @ApiModelProperty(value = "Pos" ,example = "PutDevInfo")
    private Pos Pos;

    @JsonProperty("CMD")
    public String getCMD() {
        return CMD;
    }

    @JsonProperty("CMD")
    public void setCMD(String CMD) {
        this.CMD = CMD;
    }

    @JsonProperty("No")
    public String getNo() {
        return No;
    }

    @JsonProperty("No")
    public void setNo(String no) {
        No = no;
    }

    @JsonProperty("IP")
    public String getIP() {
        return IP;
    }

    @JsonProperty("IP")
    public void setIP(String IP) {
        this.IP = IP;
    }

    @JsonProperty("ICID")
    public String getICID() {
        return ICID;
    }

    @JsonProperty("ICID")
    public void setICID(String ICID) {
        this.ICID = ICID;
    }

    @JsonProperty("HW")
    public String getHW() {
        return HW;
    }

    @JsonProperty("HW")
    public void setHW(String HW) {
        this.HW = HW;
    }

    @JsonProperty("SW")
    public String getSW() {
        return SW;
    }

    @JsonProperty("SW")
    public void setSW(String SW) {
        this.SW = SW;
    }

    @JsonProperty("Pos")
    public Pos getPos() {
        return Pos;
    }

    @JsonProperty("Pos")
    public void setPos(Pos pos) {
        Pos = pos;
    }
}
